<?php
/**订单详情
 * Created by PhpStorm.
 * User: tengyu
 * Date: 2017/9/8
 * Time: 14:17
 */?>
@extends('common.common')
@section('title','订单详情-个人中心')
@section('css')
    <link rel="stylesheet" href="{{asset('/css/personal_order_details.css')}}">
@endsection
@section('content')
    <div id="content">
    <!--nav start-->
    @include('common.centernav')
    <!--nav end-->
        <h3>个人中心</h3>
        <div class="container">
            <div class="row">
            <!--sidebar start-->
            @include('usercenter.usersidebar')
            <!--sidebar end-->
                <!--2、右侧主体-->
                <div class="col-xs-9">
                    <!--右侧面版-->
                    <div id="panel" class="panel panel-default rightPanel">
                        <div class="panel-heading">
                            <h4 class="myorder">订单详情</h4>
                        </div>
                        <div class="panel-body">
                            <ul class="product list-inline">
                                <li>商品图片</li>
                                <li>商品名称</li>
                                <li>样式</li>
                                <li>月租金</li>
                                <li>数量</li>
                                <li>单套押金</li>
                            </ul>
                            <!--列表组-->
                            @foreach($param['orderdt'] as $k=>$v)
                            <ul class="orders list-inline">
                                <li><img class="img-responsive" src="{{asset(env('STATIC_FILE_ERP_PATH').$v->fitment_details_imgMaster)}}"></li>
                                <li>{{$v->details_name}}</li>
                                <li><span>{{$v->details_length}}*{{$v->details_width}}*{{$v->details_height}}{{$v->details_describe}}</span></li>
                                <li>¥<span>@if($v->details_rent_type == 1){{$v->details_nimbleprice}}@else{{$v->details_fixprice}}@endif</span>/月</li>
                                <li><span>{{$v->details_fitment_number}}</span></li>
                                @if($v->details_rent_type == 1)
                                <li><span>{{$v->details_nimbleprice*2}}</span></li>
                                @else
                                <li><span>0</span></li>
                                @endif
                            </ul>
                            @endforeach
                            @if(count($param['orderdt'])>0)
                            <div class="orderTitle">
                                <p>
                                    <span>租赁类型</span>
                                    <span>随租随还</span>
                                    <span>持有</span>
                                    <span>2</span>
                                    <span>个月后可提前退还</span>
                                </p>
                            </div>
                            <div id="orderDetail" class="container-fluid">
                                <div class="row">
                                    <div class="col-xs-4"><span>订单详情</span></div>
                                    <div class="col-xs-4"><span>物流信息</span></div>
                                    <div class="col-xs-4"><span>支付信息</span></div>
                                </div>
                                <div class="row">
                                    <!--订单信息-->
                                    <div class="col-xs-4">
                                        <p><span>订单号</span><span>{{$param['orderdt'][0]->orders_orderNo}}</span></p>
                                        <p><span>下单时间</span><span>{{substr($param['orderdt'][0]->created_at,0,10)}}</span></p>
                                        <p><span>订单状态</span><span>{{$param['orderstatus'][$param['orderdt'][0]->orders_status]}}</span></p>
                                        @if($param['orderdt'][0]->orders_status>0)
                                        <p><span>发货日期</span><span>{{$param['orderdt'][0]->updated_at}}</span></p>
                                        @else
                                        <p><span>发货日期</span><span>{{'等待发货'}}</span></p>
                                        @endif
                                        <p><span>起租日期</span><span>{{'商品选择时的日期决定'}}</span></p>
                                        <p><span>结束日期</span><span>{{'商品选择时的日期决定'}}</span></p>
                                        <p><span>租赁期限</span><span>{{'随租随还12个月，组满即送为18个月'}}</span></p>
                                        <p><span>关联账单</span><a href="{{url('/user/bill')}}">查看账单</a></p>
                                    </div>
                                    <!--物流信息-->
                                    <div class="col-xs-4">
                                        <p><span>收货人</span><span>{{$param['orderdt'][0]->addr_rename}}</span></p>
                                        <p><span>联系电话</span><span>{{$param['orderdt'][0]->addr_rephone}}</span></p>
                                        <p class="address"><span class="lf">收货地址</span><span class="lf"><?php echo $param['orderdt'][0]->addr_city,$param['orderdt'][0]->addr_town,$param['orderdt'][0]->addr_detail;?></span></p>
                                    </div>
                                    <!--资金信息-->
                                    <div class="col-xs-4">
                                        <p>
                                            <span>应付租金</span><span>{{$param['orderdt'][0]->orders_rentbill}}</span><span>元</span>
                                        </p>
                                        <p>
                                            <span>商品总押金</span><span>{{$param['orderdt'][0]->orders_deposite}}</span><span>元</span>
                                        </p>
                                        <p>
                                            <span>需信用额度</span><span>{{$param['orderdt'][0]->orders_count_bond}}</span><span>元</span>
                                        </p>
                                        <p>
                                            <span>用信用额度</span><span>{{$param['orderdt'][0]->orders_quota}}</span><span>元</span>
                                        </p>
                                        <p>
                                            <span>优惠金额</span><span>{{$param['orderdt'][0]->orders_discount}}</span><span>元</span>
                                        </p>
                                        <p>
                                            <span>应付总金额</span><span>{{$param['orderdt'][0]->orders_amount}}</span><span>元</span>
                                        </p>
                                    </div>
                                </div>
                            </div>
                            @endif
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
@endsection
